﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SiteServer.Plugin;
using Thingpower.SS.MemberCenter.BackgroundPages;

namespace Thingpower.SS.MemberCenter
{
    public class MemberCenterPlugin : PluginBase
    {
        public const string PluginId = "Thingpower.SS.MemberCenter";

        internal static MemberCenterPlugin Instance { get; private set; }

        public override void Startup(IService service)
        {
            service
                .AddSystemMenu(new Menu
                {
                    Text = "用户中心插件管理",
                    Menus = new List<Menu>
                    {
                        new Menu
                        {
                            Text = "插件设置",
                            Href = $"BackgroundPages/{nameof(PageSettings)}.aspx"
                        }
                    }
                })
                ;

            Instance = this;

        }
    }
}